package InputStream;import java.io.*;public class CharInput {    public static void main(String[] args)  {        String s;        InputStreamReader in;        BufferedReader bu;        in = new InputStreamReader(System.in);        bu = new BufferedReader(in);            while (true) {                try {                    if (!((s = bu.readLine()) != null)) break;                System.out.println("read: " + s);                } catch (IOException e) {                    e.printStackTrace();                }            }    }}